﻿using MyCode.Project.Domain.Message.Response.ServiceOrder;
using MyCode.Project.Infrastructure.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Request.ServiceOrder
{
    /// <summary>
    /// 查询服务列表的条件
    /// </summary>
    public class GetReserveServiceListQuery
    {
        /// <summary>
        /// 服务类型。 0=免费服务，2=已购服务， 3=体验服务
        /// </summary>
        public int? ServiceType { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid? MemberID { get; set; }

        /// <summary>
        /// 店铺ID，前端不用传
        /// </summary>
        public Guid? ShopId { get; set; }
    }

    #region 核销数据
    public class ServiceOrderRequst
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 核销选中的套餐服务ID      
        /// </summary>           
        public Guid? ServiceSetID { get; set; }

        /// <summary>
        /// 前端不用对接这个字段
        /// </summary>
        public List<ServiceOrderItem> ServiceItem { get; set; }
    }

    public class ServiceOrderItem
    {
        /// <summary>
        /// 服务主键ID
        /// </summary>
        public Guid ServiceID { get; set; }

        /// <summary>
        /// 服务次数
        /// </summary>
        public int Qty { get; set; }

        /// <summary>
        /// 服务类型。新定义： 护理类型  1=护理(非盘发) 0=盘发服务 3 体验服务   旧定义：1=收费；0=免费, 3 体验服务,4=固定的护理服务
        /// </summary>
        public int ServiceType { get; set; }

        //项目类型。0=商品；1=服务；2=套餐,3=卡券 , 4=自定义套餐
        public int? ItemType  { get; set; }
}
    #endregion

    #region 
    public class ServiceOrderListReq
    {
        /// <summary>
        /// 店铺ID:详细档案接口中返回的店铺ID
        /// </summary>
        public Guid ShopID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 时间范围搜索
        /// </summary>
        public TimeRange EditTime { get; set; }

    }

    public class MemberServiceListReq
    {
        /// <summary>
        /// 店铺ID:详细档案接口中返回的店铺ID
        /// </summary>
        public Guid ShopID { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; } 
       
        /// <summary>
        /// 服务次数范围类型：0=全部的共享店铺  1=单店
        /// </summary>
        public int ShopType { get; set; }

    }

 
    public class ServiceOrder2Requst
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberID { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 核销选中的套餐服务数据     
        /// </summary>           
        public List<ServiceInvInfo> ServiceList { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        ///// <summary>
        ///// 前端不用对接这个字段
        ///// </summary>
        //public List<ServiceOrderItem> ServiceItem { get; set; }
    }

    #endregion

}
